echo 'Matando cliente de dhcp... si es que estuviera arriba'
pkill dhc*
ifconfig eth0 down
echo 'Interfaces Router H227'


echo 'eth0  red O'
ifconfig eth0 10.86.5.2 netmask 255.255.255.0 broadcast 10.86.5.255

echo 'eth0:0  red M '
ifconfig eth0:0	10.26.29.2 netmask 255.255.255.224 broadcast 10.26.29.31

echo 'eth0:1  red K '
ifconfig eth0:1	172.51.5.194 netmask 255.255.255.252 broadcast 172.51.5.95

echo 'eth0:2  red Q '
ifconfig eth0:2	172.51.5.197 netmask 255.255.255.252 broadcast 172.51.5.199
 
echo 'Asignando rutas'
#RED A
route add -net 10.26.29.32 netmask 255.255.255.240 gateway 172.51.5.193 metric 1
route add -net 10.26.29.32 netmask 255.255.255.240 gateway 10.26.29.1 metric 10

#RED B
route add -net 10.31.25.192 netmask 255.255.255.224 gateway 172.51.5.193 metric 1
route add -net 10.31.25.192 netmask 255.255.255.224 gateway 10.26.29.1 metric 10

#RED C
route add -net 192.168.56.0 netmask 255.255.255.0 gateway 172.51.5.193 metric 1 
route add -net 192.168.56.0 netmask 255.255.255.0 gateway 10.26.29.1 metric 1

#RED D
route add -net 10.64.73.0 netmask 255.255.255.0 gateway 10.86.5.1 metric 1
route add -net 10.64.73.0 netmask 255.255.255.0 gateway 10.26.29.1 metric 10

#RED E
route add -net 132.86.10.0 netmask 255.255.255.252 gateway 10.26.29.1 metric 1
route add -net 132.86.10.0 netmask 255.255.255.252 gateway 172.51.5.193 metric 10

#RED F
route add -net 10.26.29.56 netmask 255.255.255.252 gateway 10.86.5.1 metric 1
route add -net 10.26.29.56 netmask 255.255.255.252 gateway 10.26.29.1 metric 10

#RED G
route add -net 10.26.29.128 netmask 255.255.255.128 gateway 10.86.5.1 metric 1
route add -net 10.26.29.128 netmask 255.255.255.252 gateway 10.26.29.1 metric 10

#RED H
route add -net 10.26.29.60 netmask 255.255.255.252 gateway 10.26.29.1 metric 1
route add -net 10.26.29.60 netmask 255.255.255.252 gateway 10.86.5.1 metric 10

#RED I
route add -net 10.31.25.0 netmask 255.255.255.128 gateway  10.26.29.1 metric 1
route add -net 10.31.25.0 netmask 255.255.255.128 gateway  10.86.5.1 metric 10

#RED J
route add -net 10.31.25.128 netmask 255.255.255.128 gateway 10.26.29.1 metric 1
route add -net 10.31.25.128 netmask 255.255.255.128 gateway  10.86.5.1 metric 10

#RED K
route add -net 172.51.5.192 netmask 255.255.255.252 gateway 172.51.5.198 metric 10

#RED L
route add -net 10.31.25.224 netmask 255.255.255.224 gateway 10.26.29.1 metric 1
route add -net 10.31.25.224 netmask 255.255.255.224 gateway 172.51.5.198 metric 10

#RED M
route add -net 10.26.29.0 netmask 255.255.255.224 gateway 172.51.5.198 metric 10

#RED N
route add -net 10.26.29.48 netmask 255.255.255.248 gateway 10.26.29.1 metric 1
route add -net 10.26.29.48 netmask 255.255.255.248 gateway 172.51.5.198 metric 10

#RED O
route add -net 10.86.5.0 netmask 255.255.255.0 gateway 10.26.29.1 metric 10

#RED P
route add -net 132.86.10.4 netmask 255.255.255.252 gateway 10.86.5.1 metric 1
route add -net 132.86.10.4 netmask 255.255.255.252 gateway 172.51.5.193 metric 10

#RED Q
route add -net 172.51.5.196 netmask 255.255.255.252 gateway 172.51.5.193 metric 10

#RED R
route add -net 172.51.5.200 netmask 255.255.255.252 gateway 172.51.5.198 metric 1
route add -net 172.51.5.200 netmask 255.255.255.252 gateway 10.86.5.1 metric 10

